<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="jsonali" uri="/WEB-INF/tld/json_ali.tld" %> 
<c:if test="${not empty jsoncallback}">${jsoncallback}( </c:if>
  <c:choose>
    <c:when test="${not empty objListJson && empty param.select}">{ Total:${pageTurn.rowCount}, Rows:${objListJson}}</c:when>
    <c:when test="${not empty objListJson && not empty param.select}">${objListJson}</c:when>
    <c:when test="${not empty objList}">{ Total:${fn:length(objList)},Rows:${jsonali:toJSONString(objList)}}</c:when>
    <c:when test="${not empty errorMsg}">{errorMsg:"<c:out value="${errorMsg}"/>"}</c:when>
    <c:otherwise>{"Rows":[],"Total":"0"}</c:otherwise>
  </c:choose>
<c:if test="${not empty jsoncallback}">);</c:if>
